export type ProfitType = 'fixed' | 'cost' | 'price';

export interface CalculatorParams {
    profitValue: number;
    profitType: ProfitType;
    cost: number;
    _coupon: number;
    off?: number;
    y?: number;
    weight: number;
    withdrawalFeeRate?: number;
    platformCommissionRate?: number;
    sfpFeeRate?: number;
    talentCommissionRate?: number;
    transactionFeeRate?: number;
    vatRate?: number;
    bonusCashbackRate?: number;
    logisticsCostPer10g?: number;
    exchangeRate?: number;
    buyerShippingFee?: number;
}

export interface CalculationResult {
    y?: number;
    off?: number;
    crossBorderDelivery: number;
    local: number;
    pay: number;
    platformCommission: number;
    sfpFee: number;
    talentCommission: number;
    transactionFee: number;
    vat: number;
    bonusCashbackFee: number;
    actualProfit: number;
}

export interface ApiResponse<T> {
    success: boolean;
    data?: T;
    error?: string;
} 